#ifndef FILEREADER_H
#define FILEREADER_H
#include<iostream>
#include<fstream>
#include<sstream>
using namespace std;
class FileReader
{
public:
    string Read(const string & fileNameSrc)
    {
        cout << "读取文件，获取明文。" << endl;
        fstream fs(fileNameSrc.c_str(), ios_base::in);
        stringstream ss;
        string s;
        if(fs.is_open())
        {
            while(fs >> s)
            {
                ss << s;
            }
        }
        else
        {
            cout << "不能打开文件！" << endl;
        }
        return ss.str();
    }
};
#endif